//
// Unihan Input Method
//
// Copyright © 2002-2007 Sun Wah Linux Ltd.
//
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
// USA
//
// $Id: prefedit.h 757 2007-05-10 08:19:31Z roger $
//

#ifndef __PREFEDIT_H
#define __PREFEDIT_H

#include <glib.h>
#include <unihan-gconf.h>
#include <unihan_im_keycodes.h>
#include <glade/glade.h>

#define LIST_ITEM_DATA_KEY "list_item_data_key"

enum {
	STORE_1 = 0,
	STORE_2,
	STORE_3,
	N_ITEMS
};

enum {
	REFRESH_IM_LIST = 0,
	REFRESH_SYMBOL_LIST,
	REFRESH_WORD_LIST,
	REFRESH_NONE
};

#define SHIFT_UP "shift_up"
#define SHIFT_DOWN "shift_down"

#define TARGET_SYMBOL_LIST	1
#define TARGET_WORD_LIST	2

/* common */
extern GList *im_curr_list;
extern GList *im_all_list;
extern GList *symbol_list;
extern GList *symbol_list_new;
extern GList *word_list;
extern GList *word_list_new;
extern GtkClipboard *clip_status;
/* common end */

/* IM */
extern gchar curr_im_id[];

/* prefedit */
extern GladeXML *xml_prefedit ;
extern GladeXML *xml_IMAdd;
extern GladeXML *xml_SymbolNew;
extern GladeXML *xml_WordNew;
extern GladeXML *xml_upimdpref;
extern GladeXML *xml_itabcpref;
extern GladeXML *xml_pinyinpref;
extern GladeXML *xml_wubipref;
/* prefedit end */


/* Symbol New */
extern gchar *sym_sel;
extern gchar *key_sel;
/* Symbol New end */

void refresh_im_default(void);


#endif /* __PREFEDIT_H */

// vi:ts=4:nowrap:cin:expandtab
